﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UserInfo.aspx.cs" Inherits="WXYW.UserInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    用户信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table width="100%">
        <tr style="height: 25px">
            <td style="width: 20%;">
            </td>
            <td style="width: 10%">
                用户 ID:
            </td>
            <td style="width: 30%">
                <asp:TextBox ID="customerIDTxtBox" runat="server" Width="200px" Enabled="true" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 5%; color: Red;">
                *
            </td>
            <td style="width: 20%;">
                <asp:RequiredFieldValidator ID="IDRequiredValidator" runat="server" ErrorMessage=""
                    Text="请输入用户ID" ControlToValidate="customerIDTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20%;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                公司全称:
            </td>
            <td>
                <asp:TextBox ID="customerNameTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入公司的完全名称" ControlToValidate="customerNameTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                公司简称:
            </td>
            <td>
                <asp:TextBox ID="companyNameTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                联系 人:
            </td>
            <td>
                <asp:TextBox ID="contactTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="ContactRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入联系人姓名" ControlToValidate="contactTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                联系电话:
            </td>
            <td>
                <asp:TextBox ID="phoneTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="PhoneRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入联系电话" ControlToValidate="phoneTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                联系手机:
            </td>
            <td>
                <asp:TextBox ID="mobilePhoneTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="MobilePhoneRequiredFieldValidator" runat="server"
                    ErrorMessage="" Text="请输入联系手机" ControlToValidate="mobilePhoneTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                联系传真:
            </td>
            <td>
                <asp:TextBox ID="faxTxtBox" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
            </td>
            <td>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                电子邮件:
            </td>
            <td>
                <asp:TextBox ID="emailTxtBox" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="EmailRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入邮件地址" ControlToValidate="emailTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20px;">
            </td>
            <td>
                通讯地址:
            </td>
            <td>
                <asp:TextBox ID="addressTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RequiredFieldValidator ID="AddressRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入通讯地址" ControlToValidate="addressTxtBox" ValidationGroup="NewUserValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <% if (WXYW.ContextService.CurrentAccount.UserType.ID != 10)
           { %>
        <tr>
            <td style="width: 20px;">
            </td>
            <td>
                所属平台:
            </td>
            <td>
                <asp:DropDownList ID="ServiceStationDDL" runat="server" Width="300px">
                </asp:DropDownList>
            </td>
            <td style="width: 3px; color: Red;">
            </td>
            <td>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr>
            <td style="width: 20px;">
            </td>
            <td>
                密码:
            </td>
            <td>
                <asp:TextBox ID="passwordTextBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
                *
            </td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="" ValidationGroup="NewUserValidation"
                        Text="密码长度没有达到6位" ValidationExpression="^\w{6,}$" ControlToValidate="passwordTextBox" SetFocusOnError="true"></asp:RegularExpressionValidator>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr>
            <td style="width: 20px;">
            </td>
            <td>
                确认密码:
            </td>
            <td>
                <asp:TextBox ID="repeatPasswordTxtBox" runat="server" Width="200px" ValidationGroup="NewUserValidation"></asp:TextBox>
            </td>
            <td style="width: 3px; color: Red;">
            </td>
            <td>
                <asp:CompareValidator ID="CompareValidator1" runat="server" Text="您两次输入的密码不符" ErrorMessage="您两次输入的密码不符" ControlToValidate="repeatPasswordTxtBox"
                     ControlToCompare="passwordTextBox" SetFocusOnError="true" ValidationGroup="NewUserValidation"></asp:CompareValidator>  
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <%} %>
        <tr style="text-align: center">
            <td style="width: 20px;">
            </td>
            <td colspan="4">
                <asp:Button ID="SaveButton" runat="server" Text="确定" OnClick="SaveButton_Click" ValidationGroup="NewUserValidation"
                    Width="80px" />
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
        <tr>
            <td style="width: 20px;">
            </td>
            <td colspan="4">
                <asp:Label ID="promptLbl" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td style="width: 20px;">
            </td>
        </tr>
    </table>
</asp:Content>
